<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>@yield('title')</title>
    <link rel="stylesheet" href="{{ URL::asset('css/weui.css') }}" >
    <link rel="stylesheet" href="{{ URL::asset('css/book.css') }}" >
</head>
<body>

<div class="page">
    @yield('content')
</div>

{{--这个框专门用来显示提示信息--}}
<div class="bk_toptips"><span></span></div>

<div id="global_menu" class="showIOSActionSheet" style="cursor: pointer" >
    <div></div>
</div>
<div>
    <div class="weui-mask" id="iosMask" style="display: none"></div>
    <div class="weui-actionsheet" id="iosActionsheet">
        <div class="weui-actionsheet__menu">
            <div class="weui-actionsheet__cell">用户中心</div>
            <div class="weui-actionsheet__cell">选择套餐</div>
            <div class="weui-actionsheet__cell">周边油站</div>
            <div class="weui-actionsheet__cell">常见问题</div>
        </div>
        <div class="weui-actionsheet__action">
            <div class="weui-actionsheet__cell" id="iosActionsheetCancel">取消</div>
        </div>
    </div>
</div>

</body>
<script src="{{ URL::asset('js/jquery.js') }}"></script>
<script type="text/javascript">
    $(function(){
        var $iosActionsheet = $('#iosActionsheet');
        var $iosMask = $('#iosMask');
        function hideActionSheet() {
            $iosActionsheet.removeClass('weui-actionsheet_toggle');
            $iosMask.fadeOut(200);
        }
        $iosMask.on('click', hideActionSheet);
        $('#iosActionsheetCancel').on('click', hideActionSheet);
        $(".showIOSActionSheet").on("click", function(){
            $iosActionsheet.addClass('weui-actionsheet_toggle');
            $iosMask.fadeIn(200);
        });
    });

</script>
@yield('my_js')
</html>
